package com.example.gausspaper.domain;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.criteria.CriteriaBuilder;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "db_user")

public class User {
    @Id
    @Column(length = 10)
    private String userId;
    @Column(length = 20)
    private String name;
    @Column(length = 20)
    private String password;
    @Column(length = 20)
    private String roleName;

    /*public User(String userID, String name, String password) {
        this.userId = userID;
        this.name = name;
        this.password = password;
        this.roleName = "普通用户";
    }*/
}
